/** 如果需要自己定义一些全局样式写在这里 */

$--ele-font-path: "~ele-admin/packages/style/fonts";

@import "./var.scss";
@import "~ele-admin/packages/style/index.scss";


/* 异常页面 */
.ele-exception {
  margin: 145px 0;

  .ele-exception-img,
  .ele-exception-content {
    margin: 15px 30px;
    display: inline-block;
    vertical-align: middle;
  }

  .ele-exception-content > h1 {
    font-size: 72px;
    font-weight: 600;
    margin: 0 0 20px 0;
  }

  &:not(.ele-exception-dark) .ele-exception-content > h1 {
    color: #515A6E;
  }

  .ele-exception-content > p {
    font-size: 20px;
    margin: 0 0 25px 0;
  }

  &:not(.ele-exception-dark) .ele-exception-content > p {
    color: #808695;
  }

  &.ele-exception-dark .ele-exception-img {
    opacity: .7;
  }
}

@media screen and (max-width: 768px) {
  .ele-exception {
    margin: 40px 0;

    .ele-exception-img {
      margin: 0;

      img {
        max-height: 200px;
      }
    }

    .ele-exception-content {
      text-align: center;
    }
  }
  .ele-admin-breadcrumb,
  .ele-admin-sidebar-nav {
    display: block;
  }
}

@media screen and (min-width: 768px){
  .ele-form-search.el-form--inline .el-form-item:not(.ele-form-actions) .el-form-item__content {
    max-width: 300px;
  }
}


/* 分页 */
.el-pagination {
  font-weight: normal;
  text-align: right;
}

.el-table + .el-pagination {
  margin-top: 15px;
}

.el-pagination.ele-pagination-circle {
  .el-pager li,
  .btn-prev,
  .btn-next {
    border-radius: 2px;
    min-width: 28px;
    margin-left: 0;
    margin-right: 0;

    &:not(.active) {
      background: none;
    }
  }
}

//.ele-admin-sidebar > .el-menu > .el-submenu > .el-submenu__title{
//  height: 40px;
//  line-height: 40px;
//  margin-top:4px;
//  margin-bottom: 4px;
//}
//
//.el-menu:not(.el-menu--horizontal) .el-menu-item{
//  height: 40px;
//  line-height: 40px;
//  margin-top: 4px;
//  margin-bottom: 8px;
//}



.ele-admin-collapse.ele-admin-side-mix .ele-admin-sidebar-nav .ele-admin-sidebar-nav-item .ele-admin-sidebar-nav-icon{
  font-size: 22px;
}
.ele-admin-collapse.ele-admin-side-mix .ele-admin-sidebar-nav .ele-admin-sidebar-nav-item .ele-admin-sidebar-nav-icon + .ele-admin-sidebar-nav-title{
  margin: 2px 0 0 0;
  max-height: 12px;
  transform: scale(1);
  transition: all 0.2s;
  visibility: visible;
  font-size:10px;
}
.ele-admin-collapse.ele-admin-side-mix .ele-admin-sidebar-nav{
  padding: 3px 8px 0;
}
.ele-admin-collapse.ele-admin-side-mix .ele-admin-sidebar-nav .ele-admin-sidebar-nav-item{
  padding: 5px 0;
}
//.ele-admin-fixed-body .ele-admin-sidebar, .ele-admin-fixed-body .ele-admin-sidebar-nav{
//  height:calc(100vh);
//}

.ele-admin-header{
  -webkit-app-region: drag;
}
#nprogress .bar {
  background: #ffffff !important; //自定义颜色
}
.my-dialog{
  //max-width: 100%;
}
.my-dialog .el-dialog__body{
  padding: 0;
  height: calc(100vh - 80px);
}
.el-dialog.is-fullscreen.my-dialog{
  top:15px;
  height:calc(100vh - 30px);
}
.el-dialog--center {
  text-align: left;
}
.ele-admin-side-colorful.ele-admin-side-dark .ele-admin-sidebar .el-submenu > .el-menu > li.is-active > a > span:before, .ele-admin-side-colorful.ele-admin-side-dark .ele-admin-sidebar .el-submenu > .el-menu > li.is-active > .el-submenu__title > span:before, .ele-admin-side-colorful.ele-admin-side-dark .ele-admin-sidebar .el-submenu > .el-menu > li:hover > a > span:before, .ele-admin-side-colorful.ele-admin-side-dark .ele-admin-sidebar .el-submenu > .el-menu > li:hover > .el-submenu__title > span:before{
  background: #409EFF;
}
